<template>
  <ant-modal
    modalWidth="500"
    modalHeight="450"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model
      ref="form"
      :model="form"
      :rules="rules"
      slot="content"
      layout="vertical"
    >
      <a-row :gutter="32">
        <a-upload-dragger
          name="file"
          :multiple="false"
          :headers="upload.headers"
          :action="upload.url + '/biz/bizCustomer/importData'"
          @change="handleChange"
        >
          <p class="ant-upload-drag-icon">
            <a-icon type="inbox" />
          </p>
          <p class="ant-upload-text">点击上传，也可以将文件拖入上传</p>
        </a-upload-dragger>
      </a-row>
    </a-form-model>

    <template slot="footer">
      <!-- <a-button @click="cancel"> 取消 </a-button> -->
      <a-button type="primary" @click="cancel"> 确 定 </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizCustomerAddForm from "./BizCustomerForm";
export default {
  ...BizCustomerAddForm,
};
</script>
